#include "StdAfx.h"
#include "ProcParamDefInt.h"
#include "ImageProcFn.h"
#include "DummyOne.h"

const char * const DummyOne::FunctionNameDummyOne = "CalcAvBrightness";

DummyOne::DummyOne(void) 
{
	_fnApi.SetFunctionName(DummyOne::FunctionNameDummyOne);
	_fnApi.SetFunctionDescription("this is a dummy function with one i/p param and one o/p param");
									//inputs
	_fnApi.AddParamDef(new ProcParamDefInt(0, "brightness", "sets brightness of image in range 0 to 100", IPluginICProcStepsParamDef::input, 0, 100 ));
									//outputs
	_fnApi.AddParamDef(new ProcParamDefInt(0, IPluginICProcStepsParamAttribOutputNameResult, "0 is success; 1 is exception", IPluginICProcStepsParamDef::output, 0, 1));

	_fnApi.Validate();
}


DummyOne::~DummyOne(void)
{
}


bool		DummyOne::Process(ImageProcStep *step, bool DebugMode)
{
	return true;
}




